package com.cxso.example.enums.wlpt;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.io.Serializable;

@Getter
@AllArgsConstructor
public enum TimeUnitEnum implements Serializable {


    SECOND(1000L, "秒"),
    MINUTE(1000L * 60, "分钟"),
    HOUR(1000L * 60 * 60, "小时"),
    DAY(1000L * 60 * 60 * 24, "天"),
    MONTH(1000L * 60 * 60 * 24 * 30, "月"),
    YEAR(1000L * 60 * 60 * 24 * 30 * 12, "年"),

    ;

    private final Long code;
    private final String message;

}
